// Fill out your copyright notice in the Description page of Project Settings.


#include "Lib.h"

void ULib::Echo(float value, bool bIsGoLog, int Time)
{
	const FString Message = FString::Printf(TEXT("%f"), value);

	if (bIsGoLog) {
		UE_LOG(LogTemp, Warning, TEXT("%s"), *Message);
	}
	else {
		GEngine->AddOnScreenDebugMessage(-1, Time, FColor::Blue, Message);
	}
}

void ULib::Echo(FString value, bool bIsGoLog, int Time)
{
	if (bIsGoLog) {
		UE_LOG(LogTemp, Warning, TEXT("%s"), *value);
	}
	else {
		GEngine->AddOnScreenDebugMessage(-1, Time, FColor::Blue, value);
	}
}